import { defineConfig } from "unocss"
import presetAttributify from "@unocss/preset-attributify"
import presetUno from "@unocss/preset-uno"
import transformerDirectives from "@unocss/transformer-directives"
import presetIcons from "@unocss/preset-icons"

export default defineConfig({
  transformers: [transformerDirectives()],
  presets: [
    presetUno(),
    presetAttributify(),
    presetIcons({
      extraProperties: {
        // ...额外样式
      }
    })
  ],
  shortcuts: [
    // 快捷类名
    [
      "icon",
      "inline-block w-1em h-1em aligin-middle text-current overflow-hidden"
    ]
  ]
})
